package com.yndsoft.jc.supplier.utils;


import android.content.Context;
import android.view.WindowManager;

public class ScreenUtil {

    /**获取屏幕宽度px*/
    public static int getScreenWidth(Context context) {
        WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        return wm.getDefaultDisplay().getWidth();
    }

    /**获取屏幕高度px*/
    public static int getScreenHeight(Context context) {
        WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        return wm.getDefaultDisplay().getHeight();
    }
}
